package com.cx.db.config;

import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
import com.baomidou.mybatisplus.core.injector.ISqlInjector;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author:chenxiaoyi
 * @Date:2019/10/25 10:18
 */
@Configuration
public class MybatisPlusConfig {
//    @Bean
//    public PaginationInterceptor getPaginationInterceptor() {
//        PaginationInterceptor page = new PaginationInterceptor();
//        page.setDialectType("mysql");
//        return page;
//    }

    @Bean
    public ISqlInjector getISqlInjector() {
        return new DefaultSqlInjector();
    }

}

